package com.sd365.permission.centre.pojo.vo;

import com.sd365.common.core.common.pojo.vo.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

/**
 * ResourceVO类，相对于Resource类，多了个ResourceVOs列表属性，用来表示子资源
 * @author No_one
 * @createTime 2020/12/12
 */
@ApiModel(value="com.sd365.permission.centre.pojo.vo.ResourceVO2")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResourceVO2  {
    /**
     * 存储id
     */
    private String name;
    private Long  id;
    private Long parentId;
    private List<ResourceVO2> children;
    private int leaf;

    public ResourceVO2(Long id,  String name) {
        this.name = name;
        this.id = id;
    }




}
